package com.exam.service.impl;

import com.exam.mapper.MultiQuestionMapper;
import com.exam.po.MultiQuestion;
import com.exam.service.MultiQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName MultiQuestionServiceImpl
 * @Description TODO
 * @action luoliang
 * @Data 2021/1/12 15:12
 * @Version 1.0
 */
@Service
public class MultiQuestionServiceImpl implements MultiQuestionService {

    @Autowired
    private MultiQuestionMapper multiQuestionMapper;

    /**
     * 添加
     * @param record
     * @return
     */
    @Override
    public int Insert(MultiQuestion record) {

        int insert = multiQuestionMapper.insert(record);

        return insert;
    }

    /**
     * 查询
     * @param questionid
     * @return
     */
    @Override
    public MultiQuestion SelectByPrimaryKey(Integer questionid) {
        MultiQuestion multiQuestion = multiQuestionMapper.selectByPrimaryKey(questionid);
        return multiQuestion;
    }
}
